﻿using Microsoft.AspNetCore.Mvc;
using RMSIService;
using RMSModel.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace RMS.Controllers
{
    [Route("[controller]/[action]")]
    [ApiController]
    public class TreeController : ControllerBase
    {
        private readonly IShopService _service;

        public TreeController(IShopService service)
        {
            this._service = service;
        }

        [HttpGet]
        public List<TreeModel> GetAllGoodsTypeTree()
        {
            return _service.GetAllGoodsTypeTree();
        }
    }
}
